package com.ymm.driver.api.facade;

import com.ymm.driver.api.constants.Dto.OrderDto;
import com.ymm.driver.api.constants.Dto.TradeDto;

import java.math.BigInteger;
import java.util.List;

/**
 * @Company: CUG
 * @Description: TODO
 * @Author: LiYangyong
 * @Date: 2022/8/3/003 13:48
 **/
public interface DriverCheckAllOrdersService {


    /**
     * 点击订单列表，向系统要运单信息
     * @param driverId
     * @return
     */
    public List<TradeDto> checkTradeList(BigInteger driverId);


    /**
     * 点击已完成查看历史订单
     * @param driverId
     * @return
     */
    public List<OrderDto> checkOrderList(BigInteger driverId);


    /**
     * 司机更改运单状态，先查后改
     * @param tradeId
     * @return
     */
    public int selectTradeState(BigInteger tradeId);
    public int changeTradeState(BigInteger tradeId);

}
